﻿<script src="~/Scripts/ueditor/ueditor.config.js"></script>
<script src="~/Scripts/ueditor/ueditor.all.min.js"></script>

<div class="container">
    <ul class="nav nav-tabs-custom clearfix">
        <li class="active"><a>页脚编辑</a></li>
    </ul>
	
        <div class="form-group">
            <textarea id="pageFoot"  >@ViewBag.PageFoot</textarea>
        </div>
        <button type="button" class="btn btn-primary">保存</button>

</div>

<script>
    var editor;

    $(function () {
        editor = UE.getEditor('pageFoot');

    });


    $('button').click(function () {
        var content = editor.getContent();
        var loading = showLoading();
        $.post('SetPageFoot', { content: content },
            function (data) {
                loading.close();
                if (data.success) {
                    $.dialog.succeedTips("页脚修改成功！", function () { location.href = "./index"; });
                }
                else { $.dialog.errorTips("页脚修改失败！" + data.msg); }
            });
    });


</script>
